package com.landleaf.smarthome.net.mqtt;

/**
 * When I wrote this, only God and I understood what I was doing
 * Now, God only knows
 * Created by 海航
 * 2020/9/25
 * 功能描述:
 */
public interface MqttConst {
    String MQTT_URL = "tcp://52.130.74.157:1883";
    String NAME = "admin";
    String PWD = "public";
    /**
     * /screen/service/cloud/to/screen/{mac}
     */
    String COMMON_RESPONSE_TOPIC = "/screen/service/cloud/to/screen/aa:bb:cc:dd:ee:ff";
    String COMMON_REQUEST_TOPIC = "/screen/service/screen/to/cloud/aa:bb:cc:dd:ee:ff";
    int COMMON_QOS = 0;

    /**
     * mqtt的method
     */
    String METHOD_DEVICE_WRITE = "DeviceWrite";//设备写操作
    String METHOD_DEVICE_READ = "DeviceStatusRead";//设备读操作
    String METHOD_SCENE_SET = "FamilySceneSet";//设备控制场景操作
    String METHOD_SCENE_UPDATE = "ScreenSceneSetUpload";//控制场景操作上报
    String METHOD_CONFIG_UPDATE = "FamilyConfigUpdate";//配置更新通知
    String METHOD_DEVICE_UPDATE = "DeviceStatusUpdate";//设备状态上报
    String METHOD_SECURITY_ALARM = "FamilySecurityAlarmEvent";//安防报警事件上报

    int SECURITY_ALARM_REAL_TIME = 1;//实时报警
    int SECURITY_ALARM_LOG_REPORTING = 2;//日志上报 Log reporting


    //    Scene String	化场景配置更新
//    SceneTiming	String	定时场景配置更新
//    FloorRoomDevice	String	楼层房间设备更新
//    News	String	消息公告更新
//    ApkUpdate	String	apk版本更新
    String CONFIG_SCENE = "Scene";
    String CONFIG_TIMING_SCENE = "SceneTiming";
    String CONFIG_FLOOR_ROOM_DEVICE = "FloorRoomDevice";
    String CONFIG_NEWS = "News";
    String CONFIG_APK_UPDATE = "ApkUpdate";

}
